import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/messageBox/list',
    method: 'get',
    params: query
  })
}

export function unReadList() {
  return request({
    url: '/messageBox/unReadList',
    method: 'get'
  })
}

export function getMsg(id) {
  return request({
    url: '/messageBox/getMsg/'+id,
    method: 'get'
  })
}

export function readMsg(id) {
  return request({
    url: '/messageBox/readMsg/'+id,
    method: 'post'
  })
}

